export enum Theme {
    Light = '0',
    Dark = '1'
}

export const setTheme = (theme: string) => {
    localStorage.setItem('theme', theme);
}

export const getTheme = () => {
    let theme = localStorage.getItem('theme');
    if (theme === null) {
        theme = Theme.Light;
        setTheme(theme);
    }
    return theme;
}